package com.lemon.boot.service;

import com.lemon.boot.common.base.BaseService;
import com.lemon.boot.dto.RoleDTO;
import com.lemon.boot.po.RolePO;

import java.util.List;

/**
 * 角色表 业务接口
 *
 * @author Lemon
 * @since 2024-02-29
 */
public interface IRoleService extends BaseService<RolePO, RoleDTO> {
    List<RolePO> getByUserId(Long userId, Long tenantId);

    List<RolePO> getByCurrentTenantId(Long tenantId);

    List<RolePO> getCommonByCurrentTenantId();

    List<RolePO> getByTenantId(Long tenantId);

    String getSuperKeyByCurrent();
}